<?php
$list	 = $this->list;
$count	 = count($list);
?>
<?php if ($count > 0): ?>
    <?php foreach ($list as $tpl): ?>
	<option value='<?php echo $tpl->template ?>'><?php echo $tpl->libelle ?></option>
    <?php endforeach ?>
<?php else: ?>
    <option value='-1'>Aucun Planning Type</option>
<?php endif ?>


<script type='text/javascript'>
    $(document).ready(function() {
<?php if ($count > 0): ?>
    	if ($('#templates').css('display') !== 'none')
    	    $('.validation').show('fast');
<?php else: ?>
    	$('.validation').hide('fast');
<?php endif ?>
    });
</script>
